package mvc.model.service.impl;

import mvc.model.dao.P_infoDao;
import mvc.model.dao.impl.P_infoDaoImpl;
import mvc.model.pojos.P_infoBean;
import mvc.model.service.P_infoService;
import mvc.model.vo.Color_Path;
import mvc.model.vo.Setmeal;

import java.util.List;

public class P_infoServiceImpl implements P_infoService {
    private static P_infoDao p_infoDao = new P_infoDaoImpl();
    @Override
    public P_infoBean query(int number, int flag) {
        return p_infoDao.query(number, flag);
    }

    @Override
    public P_infoBean queryID(int number) {
        return p_infoDao.queryid(number);
    }

    @Override
    public Color_Path queryPath(int pid, int cid) {
        return p_infoDao.queryPath(pid,cid);
    }

    @Override
    public List<Setmeal> queryMeal(int pid) {
        return p_infoDao.queryMeal(pid);
    }
}
